package com.ld.controller;

import com.ld.common.R;
import com.ld.model.TGeoTest;
import com.ld.service.TGeoTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TGeoTestController {

    @Autowired
    private TGeoTestService tGeoTestService;
    @RequestMapping(value = "test")
    public R test(){
        List<TGeoTest> list = tGeoTestService.select();
        return R.ok().put("result",list);
    }
    @RequestMapping("testupdate")
    public R testupdate(){
//        tGeoTestService.insert();
        tGeoTestService.update();
        return R.ok();
    }

    @RequestMapping("listpage")
    public R listPage(){
        List<TGeoTest> list = tGeoTestService.listPage();
        return R.ok().put("result",list);
    }
}
